import request from '../utils/request';

export function pageTipApp(params) {
  return request({
    url: '/tips/list',
    params,
  });
}

export function getTipDetailApp(id, params) {
  return request({
    url: `/tips/${id}`,
    params,
  });
}

export function pageTipContentApp(id, params) {
  return request({
    url: `/tips/${id}/content`,
    params,
  });
}

export function getTipContentDetailApp(tipId, id, params) {
  return request({
    url: `/tips/${tipId}/content/${id}`,
    params,
  });
}
